Ext.define('Admin.view.orderapprove.BackReasonForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.backReasonForm',
    requires: [
        'Ext.button.Button',
        'Ext.form.field.*'
        //'Ext.form.field.File',
        //'Ext.form.field.Date',
        //'Ext.form.field.ComboBox',
        //'Ext.form.field.HtmlEditor'
    ],
    //viewModel: {type: 'order'},
    controller: 'orderapprove',
    bodyPadding: 10,
    bodyBorder: true,


    defaults: {
        anchor: '100%'
    },
    fieldDefaults: {
        labelAlign: 'left',
        msgTarget: 'none',
        invalidCls: '' //unset the invalidCls so individual fields do not get styled as invalid
    },

    items: [{
		xtype: 'textarea',
		name:'refuseReason',
		readOnly:'true',
		allowBlank: true
	}
	],

   	bbar: ['->',{
		xtype: 'button',
		ui: 'gray',
		text: '确定',
		handler:function(btn){
			var win = btn.up('window');
	        if (win) {
	            win.close();
	        }
		}
	},'->']


});